HTML Browser Commands


See
html_browser.mbd and some other examples available here.

 

Browser("ObjectLabel","Commands/URL Path")
Description
 


Controls the HTML Browser Object

Possible commands:

    Back - return back to previous page

    Forward - jump forward

    Stop - stop loading HTML page

    Refresh - refresh current HTML page

    OpenFile - Show OpenFile dialog with htm/html files as a default extension

    Print - print HTML page

Anything else (including string variables) will be opened as file (HTM/HTML, MHT, PDF...) or url.

 

WARNING! HTML object can load the PDF files, but only if the approppriated PDF reader (AcrobatReader) is already installed on the user's computer.

 

For a real example of a Browser object check the example here... html_browser.mbd

 

NOTE: If you want to obtain the actual URL path from the Browser object, use the CBK_URLPath constant.

Code Example
 

** This will load the mediachance web

Link$='www.mediachcance.com'

Browser("Browser","Link$")

 

** This will print contents of the Browser object

Browser("Browser","Print")

 

 

MMB Scripting Unleashed by Bokzy, 2003 :: All rights reserved :: http://www.bokzy.com